<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2021/12/13
  Time: 17:21
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <%@include file="/template/base/baseHead.jsp" %>
</head>
<body>
<div id="app">
    <%@include file="/template/center/navTemplate.jsp" %>
    <el-container>
        <el-container>

            <el-container>
                <el-header>
                    <%@include file="/template/center/headerTemplate.jsp" %>
                </el-header>
                <el-main>
                    <c:set var="userSafe" value="userSafe" scope="page"/>
                    <c:set var="addCreditCard" value="addCreditCard" scope="page"/>
                    <c:set var="updateCreditCard" value="updateCreditCard" scope="page"/>
                    <c:set var="manageCreditCard" value="manageCreditCard" scope="page"/>
                    <c:choose>
                        <c:when test="${param.index==userSafe}">
                            <%--安全中心--%>
                            <%@include file="/template/center/core/userSafeTemplate.jsp" %>

                        </c:when>
                        <c:when test="${param.index==addCreditCard}">
                            <%--添加信用卡--%>
                            <%@include file="/template/center/core/addCreditCardTemplate.jsp" %>
                        </c:when>
                        <c:when test="${param.index==manageCreditCard}">
                            <%--管理信用卡--%>
                            <%@include file="/template/center/core/manageCreditCard.jsp" %>
                            <%@include file="/template/center/core/updateCreditCard.jsp" %>
                        </c:when>
                        <c:otherwise>
                            <%@include file="/template/center/core/meterTemplate.jsp" %>
                        </c:otherwise>
                    </c:choose>
                </el-main>
            </el-container>
        </el-container>
        <el-footer>
            <%@include file="/template/center/footerTemplate.jsp" %>
        </el-footer>
    </el-container>
</div>
<link rel="stylesheet" href="${pageContext.request.contextPath}/css/center/index.css"/>
<script src="${pageContext.request.contextPath}/js/center/index.js"></script>
</body>
</html>
